﻿@model Yes.Web.Blog.Models.IndexView

<div class="layoutMultiColumn layoutMultiColumn--secondary">
    <div class="u-paddingTop50">
        <div class="widget">
            <div class="heading-title">关于我</div>            
            <div class="widget-card">
                <div class="widget-card-content">Alt</div>
                <div class="widget-card-description">
                    <p>代码改变世界</p>
                    <p>Coding Changes the World</p>
                </div>
            </div>
        </div>

        

        @if (Model.CategoryList.Any())
        {
            <div class="widget">
                <div class="heading-title">分类</div>
                <ul class="list--withIcon">
                    @foreach (var cate in Model.CategoryList)
                    {
                        <li class="list-item">
                            <h4 class="list-itemDescription"><a href="@(Url.Action("Category", "Article", new {CategoryId = cate.Id}))">@(cate.Name)(@(cate.ArticleCount))</a></h4>
                        </li>
                    }
                </ul>
            </div>
        }

        @if (Model.TagList.Count > 0)
        {
            <div class="widget">
                <div class="heading-title">标签</div>
                <div class="widget-topic-list">
                    @foreach (var tag in Model.TagList)
                    {
                        <a href="@(Url.Action("Tag", "Article", new {Id = tag.Id}))" class="widget-topic-item" title="和@(tag.Name)有关的文章">@(tag.Name)</a>
                    }
                </div>
            </div>
        }


        <div class="widget">
            @if (Model.ArchiveList.Count > 0)
            {
                <div class="heading-title">归档</div>
                <div class="widget-list">
                    <ul>
                        @foreach (var archive in Model.ArchiveList)
                        {
                            <li><a href="@(Url.Action("Archive", "Article", new {archive.Year, archive.Month}))">@(archive.Year)年@(archive.Month)月</a>(@(archive.ArticleCount))</li>
                        }
                    </ul>
                </div>
            }

        </div>
    </div>
</div>

